package com.novel.frame.yf;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagLayout;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.WindowConstants;
import javax.swing.border.LineBorder;

import com.novel.bean.Book;
import com.novel.frame.lgw.Notice;
import com.novel.frame.lgw.StackRoom;
import com.novel.frame.lxf.FirstPage_Jpanel;
import com.novel.frame.lxf.Login_Panel;
import com.novel.frame.lxf.Register_Jpanel;
import com.novel.frame.wxl.ClickLaterFrame;
import com.novel.frame.wxl.RankingFrame;
import com.novel.frame.wxl.WelfareFrame;

public class My_bookshelf extends JFrame{
	private static final long serialVersionUID = 1L;

	private JFrame jf;
	//大面板
	private JScrollPane sp_all;//总的滚动面板
	private JPanel jp_all;//总面板
	private JPanel jp_north;//上部面板
	private JPanel jp_center;//中部面板
	private JPanel jp_south;//下部面板
	
	//==================================================
	//上部面板
	private JPanel jp_north_north;//上部面板
	private JPanel jp_north_center;//中部面板
	private JPanel jp_north_south;//下部面板
	
	//上部面板内容
	private JLabel lb_north_north_boy;//书海男生网标签
	private JLabel lb_north_north_literature;//书海文学网标签
	private JLabel lb_north_north_anime;//书海动漫网标签
	private JLabel lb_north_north_login;//注册标签
	private JLabel lb_north_north_land;//登陆标签
	private JLabel lb_north_north_help;//帮助标签
	private JLabel lb_north_north_client;//客户端标签
	
	//中部面板的内容
	private JLabel lb_north_center_title;//书海图片标签
	private JLabel lb_north_center_hotsearch;//热搜标签
	private JLabel lb_north_center_novel1;//热搜小说1
	private JLabel lb_north_center_novel2;//热搜小说2
	private JLabel lb_north_center_novel3;//热搜小说3
	private JTextField tf_search;//搜索框
	private JPanel jp_north_center_search;//搜索面板
	private JLabel lb_north_center_search;//搜索标签
	private JLabel lb_north_center_recharge;//充值标签
	private JLabel lb_north_center_authorcenter;//作家中心
	private JLabel lb_north_center_email;//邮箱图标
	private JLabel lb_north_center_myself;//自己图标
	
	//下部面板
	private JLabel lb_north_south_homepage;//首页
	private JLabel lb_north_south_01;
	private JLabel lb_north_south_library;//书库
	private JLabel lb_north_south_02;
	private JLabel lb_north_south_ranking;//排行
	private JLabel lb_north_south_03;
	private JLabel lb_north_south_IP;//IP专区
	private JLabel lb_north_south_04;
	private JLabel lb_north_south_authorwelfare;//作家福利
	private JLabel lb_north_south_05;
	private JLabel lb_north_south_notice;//公告资讯
	private JLabel lb_north_south_06;
	private JLabel lb_north_south_boyzone;//男生专区
	private JLabel lb_north_south_07;
	private JLabel lb_north_south_mylibrary;//我的书架
	
	//==================================================
	//===================中部面板组件==============================
	
//	private JPanel jp_
	//**************************************************************
	//左部面板
	private JPanel jp_center_west;//左部面板
	private JPanel jp_center_west_north;//左部面板的上部面板
	private JLabel lb_center_west_north_myhomepage;//我的主页标签
	private JPanel jp_center_west_center;//左部面板的中部面板
	private JLabel lb_center_west_center_accontManager;//账号管理
	private JLabel lb_center_west_center_myselfMsg;//个人资料
	private JLabel lb_center_west_center_passwordAndSecurity;//密码和安全
	private JLabel lb_center_west_center_mylibrary;//我的书海
	private JLabel lb_center_west_center_mybooks;//我的书架
	private JLabel lb_center_west_center_myriview;//我的书评
	private JLabel lb_center_west_center_shortMsg;//短消息
	private JLabel lb_center_west_center_VIPpower;//会员特权
	private JLabel lb_center_west_center_applyAuthor;//申请作者
	
	
	
	//**************************************************************
	//**************************************************************
	//我的书架面板
	private JPanel jp_center_myLibraryBig;//我的书架面板
	private JPanel jp_center_myLibraryBig_north;//上
	private JPanel jp_center_myLibraryBig_center;//中
	private JPanel jp_center_myLibraryBig_south;//下
	
	//上部面板组件
	private JLabel lb_center_myLibraryBig_north_myLibrary;
	private JLabel lb_center_myLibraryBig_north_renctlyRead;
	
	//中部面板组件
	private JPanel jp_center_myLibraryBig_center_book1;//第一本书
	private JPanel jp_center_myLibraryBig_center_book2;//第二本书
	private JPanel jp_center_myLibraryBig_center_book3;//第三本书
	private JPanel jp_center_myLibraryBig_center_book4;//第四本书
	private JPanel jp_center_myLibraryBig_center_book5;//第五本书
	
	private JLabel lb_center_myLibraryBig_center_book1_bookImg;//书籍标签
	private JLabel lb_center_myLibraryBig_center_book1_bookName;//书名
	private JLabel lb_center_myLibraryBig_center_book1_bookAuthor;//作者
	private JLabel lb_center_myLibraryBig_center_book1_bookCategory;//类别
	private JLabel lb_center_myLibraryBig_center_book1_bookContinueRead;//继续阅读
	private JLabel lb_center_myLibraryBig_center_book1_bookDeleteCollection;//删除订阅
	
	private JLabel lb_center_myLibraryBig_center_book2_bookImg;//书籍标签
	private JLabel lb_center_myLibraryBig_center_book2_bookName;//书名
	private JLabel lb_center_myLibraryBig_center_book2_bookAuthor;//作者
	private JLabel lb_center_myLibraryBig_center_book2_bookCategory;//类别
	private JLabel lb_center_myLibraryBig_center_book2_bookContinueRead;//继续阅读
	private JLabel lb_center_myLibraryBig_center_book2_bookDeleteCollection;//删除订阅
	
	private JLabel lb_center_myLibraryBig_center_book3_bookImg;//书籍标签
	private JLabel lb_center_myLibraryBig_center_book3_bookName;//书名
	private JLabel lb_center_myLibraryBig_center_book3_bookAuthor;//作者
	private JLabel lb_center_myLibraryBig_center_book3_bookCategory;//类别
	private JLabel lb_center_myLibraryBig_center_book3_bookContinueRead;//继续阅读
	private JLabel lb_center_myLibraryBig_center_book3_bookDeleteCollection;//删除订阅
	
	private JLabel lb_center_myLibraryBig_center_book4_bookImg;//书籍标签
	private JLabel lb_center_myLibraryBig_center_book4_bookName;//书名
	private JLabel lb_center_myLibraryBig_center_book4_bookAuthor;//作者
	private JLabel lb_center_myLibraryBig_center_book4_bookCategory;//类别
	private JLabel lb_center_myLibraryBig_center_book4_bookContinueRead;//继续阅读
	private JLabel lb_center_myLibraryBig_center_book4_bookDeleteCollection;//删除订阅
	
	private JLabel lb_center_myLibraryBig_center_book5_bookImg;//书籍标签
	private JLabel lb_center_myLibraryBig_center_book5_bookName;//书名
	private JLabel lb_center_myLibraryBig_center_book5_bookAuthor;//作者
	private JLabel lb_center_myLibraryBig_center_book5_bookCategory;//类别
	private JLabel lb_center_myLibraryBig_center_book5_bookContinueRead;//继续阅读
	private JLabel lb_center_myLibraryBig_center_book5_bookDeleteCollection;//删除订阅
	
	
	//下部面板
	private JButton bt_center_myLibraryBig_south_prePage;//上一页
	private JLabel lb_center_myLibraryBig_south_centerTitle;//中部文字
	private JButton bt_center_myLibraryBig_south_nextPage;//下一页
	
	//**************************************************************
	//**************************************************************
	//友情链接
	private JPanel jp_center_link;//链接面板
	private JLabel lb_center_link_titleImg;//图片
	
	
	//===================中部面板组件==============================
	//===================下部面板组件==============================
	private JLabel lb_south_titleImg;//下部面板图片
	//===================下部面板组件==============================
	private int width;//屏幕的寬度
	private int height;//屏幕的高度
	
	private Cursor cursor=new Cursor(Cursor.HAND_CURSOR);
	public My_bookshelf(String username,boolean flag) {
		if (!flag) {
			new Register_Jpanel();
			jf.dispose();
		}
		jf=new JFrame();
		jf.setTitle("我的书架	");
		//setLayout(null);//绝对布局
		Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
		height=(int) dimension.getHeight();
		width=(int)dimension.getWidth();
		
		//界面总面板
		jp_all = new JPanel();
		jp_all.setLayout(null);
		jp_all.setPreferredSize(new Dimension(width, (int)(height*1.8)));
		
		//滑动总面板
		sp_all=new JScrollPane();
		sp_all.getViewport().add(jp_all);
		//设置滚动条滑动速度
		sp_all.getVerticalScrollBar().setUnitIncrement(30);
		jf.add(sp_all);
		//=============================上部总面板======================================
	    //上部总面板
		jp_north=new JPanel();
		jp_north.setLayout(new BorderLayout());
//		jp_north.setBackground(Color.black);
		jp_north.setBounds(0, 0, width, (int)(height*0.2));
//		jp_north.setPreferredSize(new Dimension(0, (int)(height*0.2)));
		jp_all.add(jp_north);
		
		//字体
		Font font=new Font("微软雅黑", Font.PLAIN, 12);
		//======================上部的上部面板==============================
		//上部面板
		jp_north_north=new JPanel();
		jp_north_north.setLayout(null);
		jp_north_north.setPreferredSize(new Dimension(0,(int)(height*0.2*0.2)));
		jp_north.add(BorderLayout.NORTH,jp_north_north);
		
		//书海男生网按钮
	    lb_north_north_boy=new JLabel("书海男生网  |");
	    lb_north_north_boy.setFont(font);
	    lb_north_north_boy.setForeground(Color.black);
	    lb_north_north_boy.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_north_boy.setBounds( (int)(width*0.125),  (int)(height*0.2*0.2*0),75, 30);
	    jp_north_north.add(lb_north_north_boy);
	    
	    lb_north_north_boy.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	    
	   
	    //书海文学网按钮
	    lb_north_north_literature=new JLabel("书海文学网  |");
	    lb_north_north_literature.setFont(font);
	    lb_north_north_literature.setForeground(Color.black);
	    lb_north_north_literature.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_north_literature.setBounds( (int)(width*0.185),  (int)(height*0.2*0.2*0),75, 30);
	    jp_north_north.add(lb_north_north_literature);
	    
	    lb_north_north_literature.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * <p>Title: mouseClicked</p>
	    	 * <p>Description: </p>
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	   
	    //书海动漫网按钮
	    lb_north_north_anime=new JLabel("书海动漫网");
	    lb_north_north_anime.setFont(font);
	    lb_north_north_anime.setForeground(Color.black);
	    lb_north_north_anime.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_north_anime.setBounds( (int)(width*0.245),  (int)(height*0.2*0.2*0),75, 30);
	    jp_north_north.add(lb_north_north_anime);
	    
	    lb_north_north_anime.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * <p>Title: mouseClicked</p>
	    	 * <p>Description: </p>
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	    
	    //注册按钮
	    lb_north_north_login=new JLabel("注册  |");
	    lb_north_north_login.setFont(font);
	    lb_north_north_login.setForeground(Color.black);
	    lb_north_north_login.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_north_login.setBounds( (int)(width*0.72),  (int)(height*0.2*0.2*0), 50, 30);
	    lb_north_north_login.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new Register_Jpanel();
        		jf.dispose();
        	}
		});
	    if (username!=null&& !username.equals("")) {
	    	lb_north_north_login.setText(username);
	    	lb_north_north_login.setForeground(Color.red);
		}
	    jp_north_north.add(lb_north_north_login);
	    
	    
	    //登录按钮
	    lb_north_north_land=new JLabel("登录  |");
	    lb_north_north_land.setFont(font);
	    lb_north_north_land.setForeground(Color.red);
	    lb_north_north_land.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_north_land.setBounds((int)(width*0.755),  (int)(height*0.2*0.2*0), 50, 30);
	    lb_north_north_land.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new Login_Panel();
        		jf.dispose();
        	}
		});
	    if (username!=null&& !username.equals("")) {
	    	lb_north_north_land.setText("退出");
	    	lb_north_north_land.setForeground(Color.black);
		}
	    jp_north_north.add(lb_north_north_land);
	    
	    //帮助按钮
	    lb_north_north_help=new JLabel("帮助  |");
	    lb_north_north_help.setFont(font);
	    lb_north_north_help.setForeground(Color.black);
	    lb_north_north_help.setBounds((int)(width*0.79),  (int)(height*0.2*0.2*0), 50, 30);
	    jp_north_north.add(lb_north_north_help);
	    
	    //客户端按钮
	    lb_north_north_client=new JLabel("客户端");
	    lb_north_north_client.setFont(font);
	    lb_north_north_client.setForeground(Color.black);
	    lb_north_north_client.setBounds((int)(width*0.825),  (int)(height*0.2*0.2*0), 50, 30);
	    jp_north_north.add(lb_north_north_client);
		//======================上部的上部面板==============================
		
	    //======================上部的中部面板==============================
		//中部面板
	    jp_north_center=new JPanel();
	    jp_north_center.setLayout(null);
	    jp_north_center.setBackground(Color.WHITE);
//	    jp_north_center.setPreferredSize(new Dimension(0,(int)(height*0.2*0.6)));
		jp_north.add(BorderLayout.CENTER,jp_north_center);
	    
		//上部面板中部书海图片
	    lb_north_center_title=new JLabel();
	    lb_north_center_title.setIcon(new ImageIcon(Person_center.class.getResource("./YFimg/书海标题.png")));
	    lb_north_center_title.setBounds( (int)(width*0.125),(int)(height*0.2*0.6*0.2), 150, 60);
	    jp_north_center.add(lb_north_center_title);
	    
	    //热搜标签
	    lb_north_center_hotsearch=new JLabel("热搜:");
	    lb_north_center_hotsearch.setFont(font);
	    lb_north_center_hotsearch.setForeground(Color.black);
	    lb_north_center_hotsearch.setBounds((int)(width*0.375),(int)(height*0.2*0.6*0.22),50,30);
	    jp_north_center.add(lb_north_center_hotsearch);
	    
	    //热搜文本01
	    lb_north_center_novel1=new JLabel("将军，别乱来");
	    lb_north_center_novel1.setFont(font);
	    lb_north_center_novel1.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_center_novel1.setForeground(Color.red);
	    lb_north_center_novel1.setBounds((int)(width*0.4),(int)(height*0.2*0.6*0.22),90,30);
	    jp_north_center.add(lb_north_center_novel1);
	    
	    lb_north_center_novel1.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * <p>Title: mouseClicked</p>
	    	 * <p>Description: </p>
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
//	    		String sql="SELECT * FROM book WHERE bookname LIKE ?";
//	    		String params="%"+lb_north_center_novel1.getText()+"%";
//	    		System.out.println(params);
//	    		Book book=searchbook(sql, params);
//	    		System.out.println(book);
	    	}
		});
	    
	    //热搜文本02
	    lb_north_center_novel2=new JLabel("冷情总裁求放过");
	    lb_north_center_novel2.setFont(font);
	    lb_north_center_novel2.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_center_novel2.setForeground(Color.red);
	    lb_north_center_novel2.setBounds((int)(width*0.47),(int)(height*0.2*0.6*0.22),90,30);
	    jp_north_center.add(lb_north_center_novel2);
	    
	    lb_north_center_novel2.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * <p>Title: mouseClicked</p>
	    	 * <p>Description: </p>
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
//	    		String sql="SELECT * FROM book WHERE bookname LIKE ?";
//	    		String params="%"+lb_north_center_novel2.getText()+"%";
//	    		System.out.println(params);
//	    		Book book=searchbook(sql, params);
//	    		System.out.println(book);
	    	}
		});
	    
	    //热搜文本03
	    lb_north_center_novel3=new JLabel("夫人叫你来喝药");
	    lb_north_center_novel3.setFont(font);
	    lb_north_center_novel3.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_center_novel3.setForeground(Color.red);
	    lb_north_center_novel3.setBounds((int)(width*0.54),(int)(height*0.2*0.6*0.22),90,30);
	    jp_north_center.add(lb_north_center_novel3);
	    
	    lb_north_center_novel3.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * <p>Title: mouseClicked</p>
	    	 * <p>Description: </p>
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
//	    		String sql="SELECT * FROM book WHERE bookname LIKE ?";
//	    		String params="%"+lb_north_center_novel3.getText()+"%";
//	    		System.out.println(params);
//	    		Book book=searchbook(sql, params);
//	    		System.out.println(book);
	    	}
		});
	    
//	    JTextField jtf2 = new JTextField("提示",10); 
//	    jtf2.setFont(new Font("标楷体",Font.TRUETYPE_FONT|Font.ITALIC,12));
	    //搜索文本框
	    tf_search=new JTextField("书号/书名/作者/关键字/简介",10);
	    tf_search.setFont(new Font("标楷体",Font.TRUETYPE_FONT|Font.ITALIC,12));
	    tf_search.setBounds((int)(width*0.375), (int)(height*0.2*0.6*0.44),300, 30);
	    jp_north_center.add(tf_search);
	    
	    tf_search.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (e.getButton()==MouseEvent.BUTTON1) {//鼠标左键
	    			if (tf_search.getText().equals("书号/书名/作者/关键字/简介")) {
						tf_search.setText("");
					}
	    			
				}
	    	}
	    	
	    	//鼠标退出组件
	    	@Override
	    	public void mouseExited(MouseEvent e) {
	    		if (tf_search.getText().equals("")||tf_search.getText()==null) {
	    			tf_search.setText("书号/书名/作者/关键字/简介");
				}
	    	}
	    	
		});
	    
	    
	    //搜索面板
	    jp_north_center_search=new JPanel();
	    jp_north_center_search.setBounds((int)(width*0.59), (int)(height*0.2*0.6*0.44),60, 30);
	    jp_north_center_search.setBackground(Color.RED);
		jp_north_center.add(jp_north_center_search);
	    
	    //上部面板搜索按钮图片
	    lb_north_center_search=new JLabel("搜索");
	    lb_north_center_search.setFont(new Font("微软雅黑",Font.PLAIN,14));
	    lb_north_center_search.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_center_search.setForeground(Color.WHITE);
//	    lb_north_center_search.setBounds((int)(width*0.54), (int)(height*0.2*0.6*0.44),225, 30);
	    jp_north_center_search.add(lb_north_center_search);
	    
	    lb_north_center_search.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (e.getButton()==MouseEvent.BUTTON1) {
//	    			String params="%"+tf_search.getText()+"%";
//	    			String sql="SELECT * FROM book WHERE bookname LIKE ?";
//	    			Book book=searchbook(sql,params);
//					System.out.println(book);
				}
	    	}
		});
	    
	    
	    
	    //上部面板充值按钮
	    lb_north_center_recharge=new JLabel("充值");
	    lb_north_center_recharge.setForeground(Color.red);
	    lb_north_center_recharge.setFont(new Font("微软雅黑",Font.PLAIN,14));
//	    lb_Recharge.setIcon(new ImageIcon(Novel.class.getResource("充值图片.png")));
	    lb_north_center_recharge.setBounds((int)(width*0.69), (int)(height*0.2*0.6*0.2),225, 30);
	    jp_north_center.add(lb_north_center_recharge);
	    
	    //上部面板作家中心按钮
	    lb_north_center_authorcenter=new JLabel("作家中心");
	    lb_north_center_authorcenter.setForeground(Color.red);
	    lb_north_center_authorcenter.setFont(new Font("微软雅黑",Font.PLAIN,14));
//	    lb_north_center_authorcenter.setIcon(new ImageIcon(Novel.class.getResource("作家中心图片.png")));
	    lb_north_center_authorcenter.setBounds((int)(width*0.69), (int)(height*0.2*0.6*0.5),225, 30);
	    jp_north_center.add(lb_north_center_authorcenter);
	    
	    //上部面板邮件图像登录按钮
	    lb_north_center_email=new JLabel();
	    lb_north_center_email.setIcon(new ImageIcon(Person_center.class.getResource("./YFimg/邮件图片.png")));
	    lb_north_center_email.setBounds((int)(width*0.77), (int)(height*0.2*0.6*0.4),225, 30);
	    jp_north_center.add(lb_north_center_email);
	    
	    //上部面板登录头像图片
	    ImageIcon headPicImg=new ImageIcon(Person_center.class.getResource("./YFimg/头像图片.png"));
	    lb_north_center_myself=new JLabel(headPicImg);
	    lb_north_center_myself.setBounds((int)(width*0.81), (int)(height*0.2*0.6*0.3),headPicImg.getIconWidth(), headPicImg.getIconHeight());
	    lb_north_center_myself.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_center_myself.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		if (e.getButton()==MouseEvent.BUTTON1) {
        			new Person_center(username,true);
        			jf.dispose();
				}
        	}        
		});
	    jp_north_center.add(lb_north_center_myself);
	    
		
	    
	    //======================上部的中部面板==============================
	    
	    //======================上部的下部面板==============================
	    //下部面板
		jp_north_south=new JPanel();
		jp_north_south.setLayout(null);
		jp_north_south.setBackground(Color.red);
		jp_north_south.setPreferredSize(new Dimension(0,(int)(height*0.2*0.2)));
		jp_north.add(BorderLayout.SOUTH,jp_north_south);
		
		//标题文字格式
	    Font font15=new Font("微软雅黑", Font.PLAIN, 15);
	    //首页按钮
	    lb_north_south_homepage=new JLabel("首页");
	    lb_north_south_homepage.setFont(font15);
	    lb_north_south_homepage.setForeground(Color.white);
	    lb_north_south_homepage.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_homepage.setBounds((int)(width*0.135), (int)(height*0.2*0.2*0.05), 50, 30);
	    lb_north_south_homepage.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (e.getButton()==MouseEvent.BUTTON1) {
	    			new FirstPage_Jpanel(username,true);//首页
	    			jf.dispose();
				}
	    	}
		});
	    jp_north_south.add(lb_north_south_homepage);
	    
	    //首页隔开按钮
	    lb_north_south_01=new JLabel("|");
	    lb_north_south_01.setFont(font15);
	    lb_north_south_01.setForeground(Color.white);
	    lb_north_south_01.setBounds((int)(width*0.2), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_01);
	    
	    //书库按钮
	    lb_north_south_library=new JLabel("书库");
	    lb_north_south_library.setFont(font15);
	    lb_north_south_library.setForeground(Color.white);
	    lb_north_south_library.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_library.setBounds((int)(width*0.245), (int)(height*0.2*0.2*0.05), 50, 30);
	    lb_north_south_library.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {

        		new StackRoom(username, flag);
        		jf.dispose();
        	}
		});
	    jp_north_south.add(lb_north_south_library);
	    
	    //书库隔开标签
	    lb_north_south_02=new JLabel("|");
	    lb_north_south_02.setFont(font15);
	    lb_north_south_02.setForeground(Color.white);
	    lb_north_south_02.setBounds((int)(width*0.305), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_02);
	    
	    //排行按钮
	    lb_north_south_ranking=new JLabel("排行");
	    lb_north_south_ranking.setFont(font15);
	    lb_north_south_ranking.setForeground(Color.white);
	    lb_north_south_ranking.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_ranking.setBounds((int)(width*0.345), (int)(height*0.2*0.2*0.05), 50, 30);
	    lb_north_south_ranking.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new RankingFrame(username, flag);
        		jf.dispose();
        	}
		});
	    jp_north_south.add(lb_north_south_ranking);
	    
	    //排行隔开标签
	    lb_north_south_03=new JLabel("|");
	    lb_north_south_03.setFont(font15);
	    lb_north_south_03.setForeground(Color.white);
	    lb_north_south_03.setBounds((int)(width*0.4), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_03);
	    
	    //IP专区按钮
	    lb_north_south_IP=new JLabel("IP专区");
	    lb_north_south_IP.setFont(font15);
	    lb_north_south_IP.setForeground(Color.white);
	    lb_north_south_IP.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_IP.setBounds((int)(width*0.44), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_IP);
	    
	    lb_north_south_IP.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * <p>Title: mouseClicked</p>
	    	 * <p>Description: </p>
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		JOptionPane.showMessageDialog(null, "该功能正在建设中");
	    	}
		});
	    
	    
	    //IP专区按钮隔开线
	    lb_north_south_04=new JLabel("|");
	    lb_north_south_04.setFont(font15);
	    lb_north_south_04.setForeground(Color.white);
	    lb_north_south_04.setBounds((int)(width*0.5), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_04);
	    
	    //作家福利按钮
	    lb_north_south_authorwelfare=new JLabel("作家福利");
	    lb_north_south_authorwelfare.setFont(font15);
	    lb_north_south_authorwelfare.setForeground(Color.white);
	    lb_north_south_authorwelfare.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_authorwelfare.setBounds((int)(width*0.54), (int)(height*0.2*0.2*0.05), 100, 30);
	    jp_north_south.add(lb_north_south_authorwelfare);
	    
	    lb_north_south_authorwelfare.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new WelfareFrame();
	    		jf.dispose();
	    	}
		});
	    
	    //作家福利按钮隔开线
	    lb_north_south_05=new JLabel("|");
	    lb_north_south_05.setFont(font15);
	    lb_north_south_05.setForeground(Color.white);
	    lb_north_south_05.setBounds((int)(width*0.61), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_05);
	    
	    //公告资讯按钮
	    lb_north_south_notice=new JLabel("公告资讯");
	    lb_north_south_notice.setFont(font15);
	    lb_north_south_notice.setForeground(Color.white);
	    lb_north_south_notice.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_notice.setBounds((int)(width*0.635), (int)(height*0.2*0.2*0.05), 100, 30);
	    jp_north_south.add(lb_north_south_notice);
	    
	    lb_north_south_notice.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new Notice(username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //公告资讯按钮隔开线
	    lb_north_south_06=new JLabel("|");
	    lb_north_south_06.setFont(font15);
	    lb_north_south_06.setForeground(Color.white);
	    lb_north_south_06.setBounds((int)(width*0.7), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_06);
	    
	    //男生专区按钮
	    lb_north_south_boyzone=new JLabel("男生专区");
	    lb_north_south_boyzone.setFont(font15);
	    lb_north_south_boyzone.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_boyzone.setForeground(Color.white);
	    lb_north_south_boyzone.setBounds((int)(width*0.73), (int)(height*0.2*0.2*0.05), 100, 30);
	    jp_north_south.add(lb_north_south_boyzone);
	    
	    lb_north_south_boyzone.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		JOptionPane.showMessageDialog(null, "该功能正在建设中");
	    	}
		});
	    
	    //女生专区按钮隔开线
	    lb_north_south_07=new JLabel("|");
	    lb_north_south_07.setFont(font15);
	    lb_north_south_07.setForeground(Color.white);
	    lb_north_south_07.setBounds((int)(width*0.79), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_07);
	    
	    
	    //我的书架按钮
	    lb_north_south_mylibrary=new JLabel("我的书架");
	    lb_north_south_mylibrary.setFont(font15);
	    lb_north_south_mylibrary.setForeground(Color.white);
	    lb_north_south_mylibrary.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_mylibrary.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new My_bookshelf(username,true);
        		jf.dispose();
        	}
		});
	    lb_north_south_mylibrary.setBounds((int)(width*0.815), (int)(height*0.2*0.2*0.05), 100, 30);
	    jp_north_south.add(lb_north_south_mylibrary);
		
	    //======================上部的下部面板==============================
	    
	    //=============================上部总面板==================================
	    
	    Font font13=new Font("微软雅黑",Font.PLAIN,13);
	    
	    //==========================中部面板=======================================
	    //中部面板
	    jp_center=new JPanel();
	    jp_center.setLayout(null);
//	    jp_center.setBorder(new LineBorder(Color.black));
//	    jp_center.setPreferredSize(preferredSize);
	    jp_center.setBounds(0, (int)(height*0.2), width, (int)(height*1.25));
	    jp_all.add(jp_center);
	    
	    //**********************左部面板****************************
	    //左部面板
	    jp_center_west=new JPanel();
	    jp_center_west.setLayout(new BorderLayout());
//	    jp_center_west.setBackground(Color.black);
	    jp_center_west.setBounds((int)(width*0.125), 0, (int)(width*0.125), (int)(height*0.4));
	    jp_center.add(jp_center_west);
	    
	    //左部面板的上部面板
	    jp_center_west_north=new JPanel();
	    jp_center_west_north.setBackground(Color.white);
	    jp_center_west_north.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_west_north.setLayout(null);
	    jp_center_west_north.setPreferredSize(new Dimension(0,(int)(height*0.4*0.1)));
	    jp_center_west.add(BorderLayout.NORTH,jp_center_west_north);
	    
	    //左部面板的中部面板
	    jp_center_west_center=new JPanel();
	    jp_center_west_center.setBackground(Color.WHITE);
	    jp_center_west_center.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_west_center.setLayout(null);
	    jp_center_west.add(BorderLayout.CENTER,jp_center_west_center);
	    
	    //*****************左部面板的上部面板***************************
	    //左部面板的上部面板的标签
	    lb_center_west_north_myhomepage=new JLabel("我的主页");
	    lb_center_west_north_myhomepage.setFont(font15);
	    lb_center_west_north_myhomepage.setForeground(Color.BLUE);
	    lb_center_west_north_myhomepage.setBounds((int)(width*0.125*0.3),0,100,30);
	    jp_center_west_north.add(lb_center_west_north_myhomepage);
	    
	    //******************左部面板的中部面板***********************
	    //账号管理
	    lb_center_west_center_accontManager=new JLabel("账号管理");
	    lb_center_west_center_accontManager.setFont(font15);
	    lb_center_west_center_accontManager.setBounds((int)(width*0.125*0.15), (int)(height*0.4*0.05), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_accontManager);
	    
	    //个人资料
	    lb_center_west_center_myselfMsg=new JLabel("个人资料");
	    lb_center_west_center_myselfMsg.setFont(font13);
	    lb_center_west_center_myselfMsg.setBounds((int)(width*0.125*0.3), (int)(height*0.4*0.13), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_myselfMsg);
	    
	    //密码及安全
	    lb_center_west_center_passwordAndSecurity=new JLabel("密码及安全");
	    lb_center_west_center_passwordAndSecurity.setFont(font13);
	    lb_center_west_center_passwordAndSecurity.setBounds((int)(width*0.125*0.3), (int)(height*0.4*0.21), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_passwordAndSecurity);
	    
	    //我的书海
	    lb_center_west_center_mylibrary=new JLabel("我的书海");
	    lb_center_west_center_mylibrary.setFont(font15);
	    lb_center_west_center_mylibrary.setBounds((int)(width*0.125*0.15), (int)(height*0.4*0.35), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_mylibrary);
	    
	    //我的书架
	    lb_center_west_center_mybooks=new JLabel("我的书架");
	    lb_center_west_center_mybooks.setFont(font13);
	    lb_center_west_center_mybooks.setBounds((int)(width*0.125*0.3), (int)(height*0.4*0.43), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_mybooks);
	    
	    //我的书评
	    lb_center_west_center_myriview=new JLabel("我的书评");
	    lb_center_west_center_myriview.setFont(font13);
	    lb_center_west_center_myriview.setBounds((int)(width*0.125*0.3), (int)(height*0.4*0.51), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_myriview);
	    
	    //短信息
	    lb_center_west_center_shortMsg=new JLabel("短信息");
	    lb_center_west_center_shortMsg.setFont(font13);
	    lb_center_west_center_shortMsg.setBounds((int)(width*0.125*0.3), (int)(height*0.4*0.59), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_shortMsg);
	    
	    //会员特权
	    lb_center_west_center_VIPpower=new JLabel("会员特权");
	    lb_center_west_center_VIPpower.setFont(font13);
	    lb_center_west_center_VIPpower.setBounds((int)(width*0.125*0.3), (int)(height*0.4*0.67), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_VIPpower);
	    
	    //申请作者
	    lb_center_west_center_applyAuthor=new JLabel("申请作者");
	    lb_center_west_center_applyAuthor.setFont(font15);
	    lb_center_west_center_applyAuthor.setBounds((int)(width*0.125*0.15), (int)(height*0.4*0.8), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_applyAuthor);
	    
	    //**********************左部面板****************************
	    //***********************我的书架面板***********************
	    //我的书架（大）
	    jp_center_myLibraryBig=new JPanel();
	    jp_center_myLibraryBig.setLayout(new BorderLayout());
	    jp_center_myLibraryBig.setBounds((int)(width*0.252),0,(int)(width*0.6), (int)(height*1.08));
	    jp_center_myLibraryBig.setBackground(Color.white);
	    jp_center_myLibraryBig.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center.add(jp_center_myLibraryBig);
	    
	    //上部面板
	    jp_center_myLibraryBig_north=new JPanel();
	    jp_center_myLibraryBig_north.setLayout(null);
	    jp_center_myLibraryBig_north.setPreferredSize(new Dimension(0,(int)(height*0.04)));
	    jp_center_myLibraryBig_north.setBackground(Color.WHITE);
	    jp_center_myLibraryBig_north.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_myLibraryBig.add(BorderLayout.NORTH,jp_center_myLibraryBig_north);
	    
	    //我的书架标签
	    lb_center_myLibraryBig_north_myLibrary=new JLabel("我的书架");
	    lb_center_myLibraryBig_north_myLibrary.setFont(font15);
	    lb_center_myLibraryBig_north_myLibrary.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_myLibraryBig_north_myLibrary.setBounds((int)(jp_center_myLibraryBig.getWidth()*0.05), 0, 80, 30);
	    jp_center_myLibraryBig_north.add(lb_center_myLibraryBig_north_myLibrary);
	    
	    lb_center_myLibraryBig_north_myLibrary.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (e.getButton()==MouseEvent.BUTTON1) {
	    			lb_center_myLibraryBig_north_renctlyRead.setForeground(Color.black);
	    			lb_center_myLibraryBig_north_myLibrary.setForeground(Color.red);

	    			jp_center_myLibraryBig_center_book1.add(lb_center_myLibraryBig_center_book1_bookDeleteCollection);
	    			jp_center_myLibraryBig_center_book2.add(lb_center_myLibraryBig_center_book2_bookDeleteCollection);
	    			jp_center_myLibraryBig_center_book3.add(lb_center_myLibraryBig_center_book3_bookDeleteCollection);
	    			jp_center_myLibraryBig_center_book4.add(lb_center_myLibraryBig_center_book4_bookDeleteCollection);
	    			jp_center_myLibraryBig_center_book5.add(lb_center_myLibraryBig_center_book5_bookDeleteCollection);
	    			
					jp_center_myLibraryBig.repaint();
				}
	    	}
		});
	    
	    //最近阅读标签
	    lb_center_myLibraryBig_north_renctlyRead=new JLabel("最近阅读");
	    lb_center_myLibraryBig_north_renctlyRead.setFont(font15);
	    lb_center_myLibraryBig_north_renctlyRead.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_myLibraryBig_north_renctlyRead.setBounds((int)(jp_center_myLibraryBig.getWidth()*0.15), 0, 80, 30);
	    jp_center_myLibraryBig_north.add(lb_center_myLibraryBig_north_renctlyRead);
	    
	    lb_center_myLibraryBig_north_renctlyRead.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (e.getButton()==MouseEvent.BUTTON1) {
	    			lb_center_myLibraryBig_north_renctlyRead.setForeground(Color.red);
	    			lb_center_myLibraryBig_north_myLibrary.setForeground(Color.black);
	    			
	    			jp_center_myLibraryBig_center_book1.remove(lb_center_myLibraryBig_center_book1_bookDeleteCollection);
	    			jp_center_myLibraryBig_center_book2.remove(lb_center_myLibraryBig_center_book2_bookDeleteCollection);
	    			jp_center_myLibraryBig_center_book3.remove(lb_center_myLibraryBig_center_book3_bookDeleteCollection);
	    			jp_center_myLibraryBig_center_book4.remove(lb_center_myLibraryBig_center_book4_bookDeleteCollection);
	    			jp_center_myLibraryBig_center_book5.remove(lb_center_myLibraryBig_center_book5_bookDeleteCollection);
	    			
					jp_center_myLibraryBig.repaint();
				}
	    	}
		});
	    
	    
	    
	    //***********************************************
	    //中部面板
	    jp_center_myLibraryBig_center=new JPanel();
	    jp_center_myLibraryBig_center.setLayout(null);
//	    jp_center_myLibraryBig_center.setPreferredSize(new Dimension());
	    jp_center_myLibraryBig_center.setBackground(Color.white);
	    jp_center_myLibraryBig_center.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_myLibraryBig.add(BorderLayout.CENTER,jp_center_myLibraryBig_center);
	    
	    //**********************************************************
	    //第一本书
	    jp_center_myLibraryBig_center_book1=new JPanel();
	    jp_center_myLibraryBig_center_book1.setLayout(null);
	    jp_center_myLibraryBig_center_book1.setBounds(0, 0, (int)(width*0.6), (int)(height*0.2));
	    jp_center_myLibraryBig_center_book1.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_myLibraryBig_center_book1.setBackground(Color.white);
	    jp_center_myLibraryBig_center.add(jp_center_myLibraryBig_center_book1);
	    
	    //书的图片
	    ImageIcon book1Img=new ImageIcon(My_bookshelf.class.getResource("./YFimg/巨鳄风暴.jpg"));
	    book1Img.setImage(book1Img.getImage().getScaledInstance((int)(width*0.6*0.15), (int)(height*0.2*0.9), Image.SCALE_DEFAULT));
	    lb_center_myLibraryBig_center_book1_bookImg=new JLabel(book1Img);
	    lb_center_myLibraryBig_center_book1_bookImg.setBounds((int)(width*0.6*0.05), (int)(height*0.2*0.05), (int)(width*0.6*0.15), (int)(height*0.2*0.9));
	    lb_center_myLibraryBig_center_book1_bookImg.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book1.add(lb_center_myLibraryBig_center_book1_bookImg);
	    
	    lb_center_myLibraryBig_center_book1_bookImg.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book1Img,"巨鳄风暴", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //书名
	    lb_center_myLibraryBig_center_book1_bookName=new JLabel("巨鳄风暴");
	    lb_center_myLibraryBig_center_book1_bookName.setFont(font15);
	    lb_center_myLibraryBig_center_book1_bookName.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.2), 200, 30);
	    lb_center_myLibraryBig_center_book1_bookName.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book1.add(lb_center_myLibraryBig_center_book1_bookName);
	    
	    lb_center_myLibraryBig_center_book1_bookName.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book1Img,"巨鳄风暴", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //作者
	    lb_center_myLibraryBig_center_book1_bookAuthor=new JLabel("作者："+"君莫舞");
	    lb_center_myLibraryBig_center_book1_bookAuthor.setFont(font13);
	    lb_center_myLibraryBig_center_book1_bookAuthor.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.4), 100, 30);
	    lb_center_myLibraryBig_center_book1_bookAuthor.setEnabled(false);
	    jp_center_myLibraryBig_center_book1.add(lb_center_myLibraryBig_center_book1_bookAuthor);
	    
	    //类别标签
	    lb_center_myLibraryBig_center_book1_bookCategory=new JLabel("玄幻");
	    lb_center_myLibraryBig_center_book1_bookCategory.setFont(font13);
	    lb_center_myLibraryBig_center_book1_bookCategory.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.6), 100, 30);
	    lb_center_myLibraryBig_center_book1_bookCategory.setForeground(Color.red);
	    jp_center_myLibraryBig_center_book1.add(lb_center_myLibraryBig_center_book1_bookCategory);
	    
	    //继续阅读
	    ImageIcon book1continueReadImg=new ImageIcon(My_bookshelf.class.getResource("./YFimg/继续阅读.png"));
	    book1continueReadImg.setImage(book1continueReadImg.getImage().getScaledInstance(book1continueReadImg.getIconWidth(),book1continueReadImg.getIconHeight(), Image.SCALE_DEFAULT));
	    lb_center_myLibraryBig_center_book1_bookContinueRead=new JLabel(book1continueReadImg);
	    lb_center_myLibraryBig_center_book1_bookContinueRead.setBounds((int)(width*0.6*0.75), (int)(height*0.2*0.3),book1continueReadImg.getIconWidth(),book1continueReadImg.getIconHeight());
	    jp_center_myLibraryBig_center_book1.add(lb_center_myLibraryBig_center_book1_bookContinueRead);
	    
	    lb_center_myLibraryBig_center_book1_bookContinueRead.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book1Img,"巨鳄风暴", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //删除订阅
	    lb_center_myLibraryBig_center_book1_bookDeleteCollection=new JLabel("[删除]");
	    lb_center_myLibraryBig_center_book1_bookDeleteCollection.setFont(font13);
	    lb_center_myLibraryBig_center_book1_bookDeleteCollection.setBounds((int)(width*0.6*0.79), (int)(height*0.2*0.6), 50, 30);
	    lb_center_myLibraryBig_center_book1_bookDeleteCollection.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book1.add(lb_center_myLibraryBig_center_book1_bookDeleteCollection);
	    
	    
	    //**************************************************************
	    //第二本书
	    jp_center_myLibraryBig_center_book2=new JPanel();
	    jp_center_myLibraryBig_center_book2.setLayout(null);
	    jp_center_myLibraryBig_center_book2.setBounds(0, (int)(height*0.2), (int)(width*0.6), (int)(height*0.2));
	    jp_center_myLibraryBig_center_book2.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_myLibraryBig_center_book2.setBackground(Color.white);
		jp_center_myLibraryBig_center.add(jp_center_myLibraryBig_center_book2);
	    
		//书的图片
	    ImageIcon book2Img=new ImageIcon(My_bookshelf.class.getResource("./YFimg/嫡女嫁到：贴身侍卫请上位.jpg"));
	    book2Img.setImage(book2Img.getImage().getScaledInstance((int)(width*0.6*0.15), (int)(height*0.2*0.9), Image.SCALE_DEFAULT));
	    lb_center_myLibraryBig_center_book2_bookImg=new JLabel(book2Img);
	    lb_center_myLibraryBig_center_book2_bookImg.setBounds((int)(width*0.6*0.05), (int)(height*0.2*0.05), (int)(width*0.6*0.15), (int)(height*0.2*0.9));
	    lb_center_myLibraryBig_center_book2_bookImg.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book2.add(lb_center_myLibraryBig_center_book2_bookImg);
	    
	    lb_center_myLibraryBig_center_book2_bookImg.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book2Img,"嫡女嫁到：贴身侍卫请上位", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //书名
	    lb_center_myLibraryBig_center_book2_bookName=new JLabel("嫡女嫁到：贴身侍卫请上位");
	    lb_center_myLibraryBig_center_book2_bookName.setFont(font15);
	    lb_center_myLibraryBig_center_book2_bookName.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.2), 200, 30);
	    lb_center_myLibraryBig_center_book2_bookName.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book2.add(lb_center_myLibraryBig_center_book2_bookName);
	    
	    lb_center_myLibraryBig_center_book2_bookName.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book2Img,"嫡女嫁到：贴身侍卫请上位", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //作者
	    lb_center_myLibraryBig_center_book2_bookAuthor=new JLabel("作者："+"铁铁");
	    lb_center_myLibraryBig_center_book2_bookAuthor.setFont(font13);
	    lb_center_myLibraryBig_center_book2_bookAuthor.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.4), 100, 30);
	    lb_center_myLibraryBig_center_book2_bookAuthor.setEnabled(false);
	    jp_center_myLibraryBig_center_book2.add(lb_center_myLibraryBig_center_book2_bookAuthor);
	    
	    //类别标签
	    lb_center_myLibraryBig_center_book2_bookCategory=new JLabel("古言");
	    lb_center_myLibraryBig_center_book2_bookCategory.setFont(font13);
	    lb_center_myLibraryBig_center_book2_bookCategory.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.6), 100, 30);
	    lb_center_myLibraryBig_center_book2_bookCategory.setForeground(Color.red);
	    jp_center_myLibraryBig_center_book2.add(lb_center_myLibraryBig_center_book2_bookCategory);
	    
	    //继续阅读
	    ImageIcon book2continueReadImg=new ImageIcon(My_bookshelf.class.getResource("./YFimg/继续阅读.png"));
	    book2continueReadImg.setImage(book2continueReadImg.getImage().getScaledInstance(book2continueReadImg.getIconWidth(),book2continueReadImg.getIconHeight(), Image.SCALE_DEFAULT));
	    lb_center_myLibraryBig_center_book2_bookContinueRead=new JLabel(book2continueReadImg);
	    lb_center_myLibraryBig_center_book2_bookContinueRead.setBounds((int)(width*0.6*0.75), (int)(height*0.2*0.3),book2continueReadImg.getIconWidth(),book2continueReadImg.getIconHeight());
	    jp_center_myLibraryBig_center_book2.add(lb_center_myLibraryBig_center_book2_bookContinueRead);
	    
	    lb_center_myLibraryBig_center_book2_bookContinueRead.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book2Img,"嫡女嫁到：贴身侍卫请上位", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //删除订阅
	    lb_center_myLibraryBig_center_book2_bookDeleteCollection=new JLabel("[删除]");
	    lb_center_myLibraryBig_center_book2_bookDeleteCollection.setFont(font13);
	    lb_center_myLibraryBig_center_book2_bookDeleteCollection.setBounds((int)(width*0.6*0.79), (int)(height*0.2*0.6), 50, 30);
	    lb_center_myLibraryBig_center_book2_bookDeleteCollection.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book2.add(lb_center_myLibraryBig_center_book2_bookDeleteCollection);
	    
		
	    //**************************************************************
		//第三本书
	    jp_center_myLibraryBig_center_book3=new JPanel();
	    jp_center_myLibraryBig_center_book3.setLayout(null);
	    jp_center_myLibraryBig_center_book3.setBounds(0, (int)(height*0.4), (int)(width*0.6), (int)(height*0.2));
	    jp_center_myLibraryBig_center_book3.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_myLibraryBig_center_book3.setBackground(Color.white);
	    jp_center_myLibraryBig_center.add(jp_center_myLibraryBig_center_book3);

		//书的图片
	    ImageIcon book3Img=new ImageIcon(My_bookshelf.class.getResource("./YFimg/过妻不候，前夫请止步.jpg"));
	    book3Img.setImage(book3Img.getImage().getScaledInstance((int)(width*0.6*0.15), (int)(height*0.2*0.9), Image.SCALE_DEFAULT));
	    lb_center_myLibraryBig_center_book3_bookImg=new JLabel(book3Img);
	    lb_center_myLibraryBig_center_book3_bookImg.setBounds((int)(width*0.6*0.05), (int)(height*0.2*0.05), (int)(width*0.6*0.15), (int)(height*0.2*0.9));
	    lb_center_myLibraryBig_center_book3_bookImg.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book3.add(lb_center_myLibraryBig_center_book3_bookImg);
	    
	    lb_center_myLibraryBig_center_book3_bookImg.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book3Img,"过妻不候，前夫请止步", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //书名
	    lb_center_myLibraryBig_center_book3_bookName=new JLabel("过妻不候，前夫请止步");
	    lb_center_myLibraryBig_center_book3_bookName.setFont(font15);
	    lb_center_myLibraryBig_center_book3_bookName.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.2), 200, 30);
	    lb_center_myLibraryBig_center_book3_bookName.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book3.add(lb_center_myLibraryBig_center_book3_bookName);
	    
	    lb_center_myLibraryBig_center_book3_bookName.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book3Img,"过妻不候，前夫请止步", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //作者
	    lb_center_myLibraryBig_center_book3_bookAuthor=new JLabel("作者："+"灵犀蝌蚪");
	    lb_center_myLibraryBig_center_book3_bookAuthor.setFont(font13);
	    lb_center_myLibraryBig_center_book3_bookAuthor.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.4), 100, 30);
	    lb_center_myLibraryBig_center_book3_bookAuthor.setEnabled(false);
	    jp_center_myLibraryBig_center_book3.add(lb_center_myLibraryBig_center_book3_bookAuthor);
	    
	    //类别标签
	    lb_center_myLibraryBig_center_book3_bookCategory=new JLabel("现言");
	    lb_center_myLibraryBig_center_book3_bookCategory.setFont(font13);
	    lb_center_myLibraryBig_center_book3_bookCategory.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.6), 100, 30);
	    lb_center_myLibraryBig_center_book3_bookCategory.setForeground(Color.red);
	    jp_center_myLibraryBig_center_book3.add(lb_center_myLibraryBig_center_book3_bookCategory);
	    
	    //继续阅读
	    ImageIcon book3continueReadImg=new ImageIcon(My_bookshelf.class.getResource("./YFimg/继续阅读.png"));
	    book3continueReadImg.setImage(book3continueReadImg.getImage().getScaledInstance(book3continueReadImg.getIconWidth(),book3continueReadImg.getIconHeight(), Image.SCALE_DEFAULT));
	    lb_center_myLibraryBig_center_book3_bookContinueRead=new JLabel(book3continueReadImg);
	    lb_center_myLibraryBig_center_book3_bookContinueRead.setBounds((int)(width*0.6*0.75), (int)(height*0.2*0.3),book3continueReadImg.getIconWidth(),book3continueReadImg.getIconHeight());
	    jp_center_myLibraryBig_center_book3.add(lb_center_myLibraryBig_center_book3_bookContinueRead);
	    
	    lb_center_myLibraryBig_center_book3_bookContinueRead.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book3Img,"过妻不候，前夫请止步", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //删除订阅
	    lb_center_myLibraryBig_center_book3_bookDeleteCollection=new JLabel("[删除]");
	    lb_center_myLibraryBig_center_book3_bookDeleteCollection.setFont(font13);
	    lb_center_myLibraryBig_center_book3_bookDeleteCollection.setBounds((int)(width*0.6*0.79), (int)(height*0.2*0.6), 50, 30);
	    lb_center_myLibraryBig_center_book3_bookDeleteCollection.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book3.add(lb_center_myLibraryBig_center_book3_bookDeleteCollection);
	    
	    
	    //***************************************************************
	    //第四本书
	    jp_center_myLibraryBig_center_book4=new JPanel();
	    jp_center_myLibraryBig_center_book4.setLayout(null);
	    jp_center_myLibraryBig_center_book4.setBounds(0, (int)(height*0.6), (int)(width*0.6), (int)(height*0.2));
	    jp_center_myLibraryBig_center_book4.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_myLibraryBig_center_book4.setBackground(Color.white);
	    jp_center_myLibraryBig_center.add(jp_center_myLibraryBig_center_book4);

		//书的图片
	    ImageIcon book4Img=new ImageIcon(My_bookshelf.class.getResource("./YFimg/通天武尊.jpg"));
	    book4Img.setImage(book4Img.getImage().getScaledInstance((int)(width*0.6*0.15), (int)(height*0.2*0.9), Image.SCALE_DEFAULT));
	    lb_center_myLibraryBig_center_book4_bookImg=new JLabel(book4Img);
	    lb_center_myLibraryBig_center_book4_bookImg.setBounds((int)(width*0.6*0.05), (int)(height*0.2*0.05), (int)(width*0.6*0.15), (int)(height*0.2*0.9));
	    lb_center_myLibraryBig_center_book4_bookImg.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book4.add(lb_center_myLibraryBig_center_book4_bookImg);
	    
	    lb_center_myLibraryBig_center_book4_bookImg.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book4Img,"通天武尊", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //书名
	    lb_center_myLibraryBig_center_book4_bookName=new JLabel("通天武尊");
	    lb_center_myLibraryBig_center_book4_bookName.setFont(font15);
	    lb_center_myLibraryBig_center_book4_bookName.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.2), 200, 30);
	    lb_center_myLibraryBig_center_book4_bookName.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book4.add(lb_center_myLibraryBig_center_book4_bookName);
	    
	    lb_center_myLibraryBig_center_book4_bookName.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book4Img,"通天武尊", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //作者
	    lb_center_myLibraryBig_center_book4_bookAuthor=new JLabel("作者："+"疯狂燃烧");
	    lb_center_myLibraryBig_center_book4_bookAuthor.setFont(font13);
	    lb_center_myLibraryBig_center_book4_bookAuthor.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.4), 100, 30);
	    lb_center_myLibraryBig_center_book4_bookAuthor.setEnabled(false);
	    jp_center_myLibraryBig_center_book4.add(lb_center_myLibraryBig_center_book4_bookAuthor);
	    
	    //类别标签
	    lb_center_myLibraryBig_center_book4_bookCategory=new JLabel("玄幻");
	    lb_center_myLibraryBig_center_book4_bookCategory.setFont(font13);
	    lb_center_myLibraryBig_center_book4_bookCategory.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.6), 100, 30);
	    lb_center_myLibraryBig_center_book4_bookCategory.setForeground(Color.red);
	    jp_center_myLibraryBig_center_book4.add(lb_center_myLibraryBig_center_book4_bookCategory);
	    
	    //继续阅读
	    ImageIcon book4continueReadImg=new ImageIcon(My_bookshelf.class.getResource("./YFimg/继续阅读.png"));
	    book4continueReadImg.setImage(book4continueReadImg.getImage().getScaledInstance(book4continueReadImg.getIconWidth(),book4continueReadImg.getIconHeight(), Image.SCALE_DEFAULT));
	    lb_center_myLibraryBig_center_book4_bookContinueRead=new JLabel(book4continueReadImg);
	    lb_center_myLibraryBig_center_book4_bookContinueRead.setBounds((int)(width*0.6*0.75), (int)(height*0.2*0.3),book4continueReadImg.getIconWidth(),book3continueReadImg.getIconHeight());
	    jp_center_myLibraryBig_center_book4.add(lb_center_myLibraryBig_center_book4_bookContinueRead);
	    
	    lb_center_myLibraryBig_center_book4_bookContinueRead.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book4Img,"通天武尊", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //删除订阅
	    lb_center_myLibraryBig_center_book4_bookDeleteCollection=new JLabel("[删除]");
	    lb_center_myLibraryBig_center_book4_bookDeleteCollection.setFont(font13);
	    lb_center_myLibraryBig_center_book4_bookDeleteCollection.setBounds((int)(width*0.6*0.79), (int)(height*0.2*0.6), 50, 30);
	    lb_center_myLibraryBig_center_book4_bookDeleteCollection.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book4.add(lb_center_myLibraryBig_center_book4_bookDeleteCollection);
	    
	    
	    //****************************************************************
	    //第五本书
	    jp_center_myLibraryBig_center_book5=new JPanel();
	    jp_center_myLibraryBig_center_book5.setLayout(null);
	    jp_center_myLibraryBig_center_book5.setBounds(0, (int)(height*0.8), (int)(width*0.6), (int)(height*0.2));
	    jp_center_myLibraryBig_center_book5.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_myLibraryBig_center_book5.setBackground(Color.white);
	    jp_center_myLibraryBig_center.add(jp_center_myLibraryBig_center_book5);

		//书的图片
	    ImageIcon book5Img=new ImageIcon(My_bookshelf.class.getResource("./YFimg/我在缅甸挖矿那些年.jpg"));
	    book5Img.setImage(book5Img.getImage().getScaledInstance((int)(width*0.6*0.15), (int)(height*0.2*0.9), Image.SCALE_DEFAULT));
	    lb_center_myLibraryBig_center_book5_bookImg=new JLabel(book5Img);
	    lb_center_myLibraryBig_center_book5_bookImg.setBounds((int)(width*0.6*0.05), (int)(height*0.2*0.05), (int)(width*0.6*0.15), (int)(height*0.2*0.9));
	    lb_center_myLibraryBig_center_book5_bookImg.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book5.add(lb_center_myLibraryBig_center_book5_bookImg);
	    
	    lb_center_myLibraryBig_center_book5_bookImg.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book5Img,"我在缅甸挖矿那些年", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //书名
	    lb_center_myLibraryBig_center_book5_bookName=new JLabel("我在缅甸挖矿那些年");
	    lb_center_myLibraryBig_center_book5_bookName.setFont(font15);
	    lb_center_myLibraryBig_center_book5_bookName.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.2), 200, 30);
	    lb_center_myLibraryBig_center_book5_bookName.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book5.add(lb_center_myLibraryBig_center_book5_bookName);
	    
	    lb_center_myLibraryBig_center_book5_bookName.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book5Img,"我在缅甸挖矿那些年", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //作者
	    lb_center_myLibraryBig_center_book5_bookAuthor=new JLabel("作者："+"辰");
	    lb_center_myLibraryBig_center_book5_bookAuthor.setFont(font13);
	    lb_center_myLibraryBig_center_book5_bookAuthor.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.4), 100, 30);
	    lb_center_myLibraryBig_center_book5_bookAuthor.setEnabled(false);
	    jp_center_myLibraryBig_center_book5.add(lb_center_myLibraryBig_center_book5_bookAuthor);
	    
	    //类别标签
	    lb_center_myLibraryBig_center_book5_bookCategory=new JLabel("都市");
	    lb_center_myLibraryBig_center_book5_bookCategory.setFont(font13);
	    lb_center_myLibraryBig_center_book5_bookCategory.setBounds((int)(width*0.6*0.225), (int)(height*0.2*0.6), 100, 30);
	    lb_center_myLibraryBig_center_book5_bookCategory.setForeground(Color.red);
	    jp_center_myLibraryBig_center_book5.add(lb_center_myLibraryBig_center_book5_bookCategory);
	    
	    //继续阅读
	    ImageIcon book5continueReadImg=new ImageIcon(My_bookshelf.class.getResource("./YFimg/继续阅读.png"));
	    book5continueReadImg.setImage(book5continueReadImg.getImage().getScaledInstance(book5continueReadImg.getIconWidth(),book5continueReadImg.getIconHeight(), Image.SCALE_DEFAULT));
	    lb_center_myLibraryBig_center_book5_bookContinueRead=new JLabel(book5continueReadImg);
	    lb_center_myLibraryBig_center_book5_bookContinueRead.setBounds((int)(width*0.6*0.75), (int)(height*0.2*0.3),book5continueReadImg.getIconWidth(),book5continueReadImg.getIconHeight());
	    jp_center_myLibraryBig_center_book5.add(lb_center_myLibraryBig_center_book5_bookContinueRead);
	    
	    lb_center_myLibraryBig_center_book5_bookContinueRead.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book5Img,"我在缅甸挖矿那些年", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //删除订阅
	    lb_center_myLibraryBig_center_book5_bookDeleteCollection=new JLabel("[删除]");
	    lb_center_myLibraryBig_center_book5_bookDeleteCollection.setFont(font13);
	    lb_center_myLibraryBig_center_book5_bookDeleteCollection.setBounds((int)(width*0.6*0.79), (int)(height*0.2*0.6), 50, 30);
	    lb_center_myLibraryBig_center_book5_bookDeleteCollection.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_myLibraryBig_center_book5.add(lb_center_myLibraryBig_center_book5_bookDeleteCollection);
	    
	    
	    //***************************************************************
	    //下部面板
	    jp_center_myLibraryBig_south=new JPanel();
	    jp_center_myLibraryBig_south.setLayout(null);
	    jp_center_myLibraryBig_south.setPreferredSize(new Dimension(0,(int)(height*0.04)));
//	    jp_center_myLibraryBig_south.setBackground(Color.WHITE);
	    jp_center_myLibraryBig_south.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_myLibraryBig.add(BorderLayout.SOUTH,jp_center_myLibraryBig_south);
	    
	    //前一页
	    bt_center_myLibraryBig_south_prePage=new JButton("前一页");
	    bt_center_myLibraryBig_south_prePage.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    bt_center_myLibraryBig_south_prePage.setFont(font15);
	    bt_center_myLibraryBig_south_prePage.setBounds((int)(width*0.6*0.3), 0, 100, 30);
	    jp_center_myLibraryBig_south.add(bt_center_myLibraryBig_south_prePage);
	    
	    //中间文本
	    lb_center_myLibraryBig_south_centerTitle=new JLabel("共1/1页");
	    lb_center_myLibraryBig_south_centerTitle.setFont(font15);
	    lb_center_myLibraryBig_south_centerTitle.setBounds((int)(width*0.6*0.48), 0, 200, 30);
	    jp_center_myLibraryBig_south.add(lb_center_myLibraryBig_south_centerTitle);
	    
	    //下一页
	    bt_center_myLibraryBig_south_nextPage=new JButton("下一页");
	    bt_center_myLibraryBig_south_nextPage.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    bt_center_myLibraryBig_south_nextPage.setFont(font15);
	    bt_center_myLibraryBig_south_nextPage.setBounds((int)(width*0.6*0.6), 0, 100, 30);
	    jp_center_myLibraryBig_south.add(bt_center_myLibraryBig_south_nextPage);
	    
//	    repaint();
	    //***********************************************
	    //***********************我的书架面板***********************
	    //*********************友情链接面板*************************
	    //友情链接
	    jp_center_link=new JPanel();
	    jp_center_link.setLayout(new BorderLayout());
	    jp_center_link.setBounds((int)(width*0.125),jp_center_myLibraryBig.getHeight()+(int)(height*0.005),(int)(width*0.727), (int)(height*0.15));
	    jp_center_link.setBorder(BorderFactory.createRaisedBevelBorder());
//	    jp_center_link.setBackground(Color.black);
	    jp_center.add(jp_center_link);
	    
	    //图片
	    ImageIcon linkImg=new ImageIcon(Person_center.class.getResource("./YFimg/友情链接.png"));
	    lb_center_link_titleImg=new JLabel(linkImg);
	    linkImg.setImage(linkImg.getImage().getScaledInstance((int)(width*0.727), (int)(height*0.15), Image.SCALE_DEFAULT));
	    jp_center_link.add(lb_center_link_titleImg);
	    
	    
	    //*********************友情链接面板*************************
	    
	    //==========================中部面板=================================
	    //==========================下部面板=================================
	    //下部面板
	    jp_south=new JPanel();
	    jp_south.setLayout(new BorderLayout());
//	    jp_south.setBackground(Color.black);
//	    jp_south.setPreferredSize(new Dimension(0, (int)(height*0.27)));
	    jp_south.setBounds(0, jp_north.getHeight()+jp_center.getHeight(), width, (int)(height*0.3));
		jp_all.add(jp_south);
	    
	    //图片
		ImageIcon southImg=new ImageIcon(Person_center.class.getResource("./YFimg/最底下面板.png"));
		lb_south_titleImg=new JLabel(southImg);
//		southImg.setImage(southImg.getImage().getScaledInstance(width, (int)(jp_south.getPreferredSize().getHeight()), Image.SCALE_DEFAULT));
//		lb_south_titleImg.setVisible(false);
	    jp_south.add(lb_south_titleImg);
		
		
	    //==========================下部面板=================================
	    
//	    jp_all.setSize(width,height*2);
	    //===========================================================
		//===================================================================
		
		jf.setSize(width,height);//设置大小
		jf.setVisible(true);
		jf.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		jf.setLocationRelativeTo(null);//居中
		
		
		
	}
	//lb_center_myLibraryBig_center_book1_bookDeleteCollection
	//jp_center_myLibraryBig_center_book2
	
	
	public static void main(String[] args) {
//		System.out.println("hello");
		new My_bookshelf(null,false);
	}
}
